project(ksvgeditor_config)

set(CMAKE_AUTOMOC ON)

find_package(Qt5 REQUIRED COMPONENTS Widgets Core Gui)

# Settings Manager
set(SETTINGS_HEADER_FILES
    ksettingmanager.h
    ksettingutils.h
)
set(SETTINGS_CPP_FILES
    ksettingmanager.cpp
    ksettingutils.cpp
)

# 汇总所有头文件和源码
set(HEADER_FILES
    ${SETTINGS_HEADER_FILES}
)

set(CPP_FILES
    ${SETTINGS_CPP_FILES}
)

set(UI_FILES
)

set(RCC_FILES
)

# Source group 分类
source_group("Settings" FILES ${SETTINGS_HEADER_FILES} ${SETTINGS_CPP_FILES})
source_group("Form Files" FILES ${UI_FILES})
source_group("Resource Files" FILES ${RCC_FILES})

add_library(${PROJECT_NAME} STATIC ${HEADER_FILES} ${CPP_FILES} ${UI_FILES} ${RCC_FILES})

target_include_directories(${PROJECT_NAME} PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}
)

target_link_libraries(${PROJECT_NAME} PUBLIC
    ksvgeditor_core
    ksvgeditor_ui
)

target_link_libraries(${PROJECT_NAME} PUBLIC
    Qt5::Widgets
    Qt5::Gui
    Qt5::Core
)